Degenerate Singular Cycles And Chaotic Switching In The Two-Site Open Bose--Hubbard Model